package com.jdb.loan.api.service;

import com.guns21.result.domain.PageResult;
import com.guns21.result.domain.Result;
import feign.Param;
import feign.RequestLine;

import java.util.Date;

public interface FavoriteService {

    @RequestLine("GET /api/social/v1/favorite/{id}")
    Result get(@Param("id") String id);

    @RequestLine("GET /api/social/v1/favorite/ids?userId={userId}&time={time}&forward={forward}&count={count}")
    PageResult listId(@Param("userId") String userId, @Param("time") Date time, @Param("forward") boolean forward, @Param("count") int count);

}
